package com.yufa.springcloud.feign;

import com.yufa.config.FeignClient01Config;
import com.yufa.springcloud.pojo.User;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="provider-user",configuration = FeignClient01Config.class)
public interface FeignClient01 {

    @RequestLine("GET /user/{id}")
    User getUser(@Param("id") Long id);

    @RequestLine("POST /get-user")
    User get_User(@RequestBody User user);
}
